In order to solve the problem of outlier detection of integrated energy security defense monitoring software, an automatic detection algorithm of virtual machine power anomaly in a cloud computing environment is proposed. The method is implemented through three main steps: data preprocessing, pattern recognition, and prediction of virtual machine power anomaly detection model. It is found through experiments that with the increase of node number, the convergent iterations of the model are less and RMSE is lower, but the increase of node number of the hidden layer will lead to a longer model running time. When the number of nodes reaches 100, the test results of the validation set are significantly improved, and the loss function of the validation set is minimal when the number of nodes is less than 30 iterations. Finally, the hidden layer of the model consists of 100 LSTM units, followed by a dense output layer with 1 neuron, and 0.2 loss, retrospection, and foresight equal to 1. Adam optimizer was used to train LSTM and stop it in advance after 50 iteration steps. Its parameters remained default, with a learning rate of 0.001 and attenuation of 0.9. It can be seen that this model can well predict the virtual machine power consumption data and effectively solve the problem of outlier detection of integrated energy security defense monitoring software.
Loading....